/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmUtama.java
 *
 * Created on Jan 26, 2012, 11:57:57 AM
 */
package SIMRS.RawatInap.view;

import java.awt.Dimension;
import java.awt.Toolkit;
import usu.widget.Form;

/**
 *
 * @author yusuf
 */
public class frmUtama extends Form {

    /** Creates new form frmUtama */
    public frmUtama() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelImage1 = new SIMRS.RawatInap.widget.PanelImage();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        mnLogin = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        mnPasienMasuk = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        mnLogout = new javax.swing.JMenuItem();
        mnExit = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        mnDaftarPasienLama = new javax.swing.JMenuItem();
        mnDaftarPasienMeninggal = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        mnInformasiDaftarOderBarang = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        mnPemesananBarangRuangan = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        mnBukuRegisteriRawatInap = new javax.swing.JMenuItem();
        mnKunjunganPasien = new javax.swing.JMenuItem();
        jMenu5 = new javax.swing.JMenu();
        mnAbout = new javax.swing.JMenuItem();
        mnPanduanAplikasi = new javax.swing.JMenuItem();

        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });
        getContentPane().add(panelImage1, java.awt.BorderLayout.CENTER);

        jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/File.png"))); // NOI18N
        jMenu1.setText("File");

        mnLogin.setText("Login");
        mnLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnLoginActionPerformed(evt);
            }
        });
        jMenu1.add(mnLogin);
        jMenu1.add(jSeparator2);

        mnPasienMasuk.setText("Pasien Masuk Rawat Inap");
        mnPasienMasuk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnPasienMasukActionPerformed(evt);
            }
        });
        jMenu1.add(mnPasienMasuk);
        jMenu1.add(jSeparator3);

        mnLogout.setText("Logout");
        jMenu1.add(mnLogout);

        mnExit.setText("Exit");
        mnExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnExitActionPerformed(evt);
            }
        });
        jMenu1.add(mnExit);

        jMenuBar1.add(jMenu1);

        jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/Registrasi.png"))); // NOI18N
        jMenu2.setText("Informasi");

        mnDaftarPasienLama.setText("Daftar Pasien Lama");
        mnDaftarPasienLama.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnDaftarPasienLamaActionPerformed(evt);
            }
        });
        jMenu2.add(mnDaftarPasienLama);

        mnDaftarPasienMeninggal.setText("Daftar Pasien Meninggal");
        mnDaftarPasienMeninggal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnDaftarPasienMeninggalActionPerformed(evt);
            }
        });
        jMenu2.add(mnDaftarPasienMeninggal);
        jMenu2.add(jSeparator1);

        mnInformasiDaftarOderBarang.setText("Informasi Daftar Order Barang");
        mnInformasiDaftarOderBarang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnInformasiDaftarOderBarangActionPerformed(evt);
            }
        });
        jMenu2.add(mnInformasiDaftarOderBarang);

        jMenuBar1.add(jMenu2);

        jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/Modul.png"))); // NOI18N
        jMenu3.setText("Utility");

        mnPemesananBarangRuangan.setText("Pemesanan Barang Ruangan");
        mnPemesananBarangRuangan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnPemesananBarangRuanganActionPerformed(evt);
            }
        });
        jMenu3.add(mnPemesananBarangRuangan);

        jMenuBar1.add(jMenu3);

        jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/Laporan.png"))); // NOI18N
        jMenu4.setText("Laporan");

        mnBukuRegisteriRawatInap.setText("Buku Register Rawat Inap");
        jMenu4.add(mnBukuRegisteriRawatInap);

        mnKunjunganPasien.setText("Kunjungan Pasien");
        jMenu4.add(mnKunjunganPasien);

        jMenuBar1.add(jMenu4);

        jMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/RawatInap/gambar/Help.png"))); // NOI18N
        jMenu5.setText("Bantuan");

        mnAbout.setText("About");
        jMenu5.add(mnAbout);

        mnPanduanAplikasi.setText("Panduan Aplikasi");
        jMenu5.add(mnPanduanAplikasi);

        jMenuBar1.add(jMenu5);

        setJMenuBar(jMenuBar1);
    }// </editor-fold>//GEN-END:initComponents

private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
 Dimension layar = Toolkit.getDefaultToolkit().getScreenSize();
    this.setSize(layar);// TODO add your handling code here:
}//GEN-LAST:event_formWindowActivated

    private void mnLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnLoginActionPerformed
        frmLogin_RawatInap login=new frmLogin_RawatInap();
        login.show();
    }//GEN-LAST:event_mnLoginActionPerformed

    private void mnPasienMasukActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnPasienMasukActionPerformed
        frmPasienRawatInap pasienRawatInap=new frmPasienRawatInap();
        pasienRawatInap.show();
    }//GEN-LAST:event_mnPasienMasukActionPerformed

    private void mnPemesananBarangRuanganActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnPemesananBarangRuanganActionPerformed
        frmPemesananBarangRuangan pemesananBarangRuangan=new frmPemesananBarangRuangan();
        pemesananBarangRuangan.show();
    }//GEN-LAST:event_mnPemesananBarangRuanganActionPerformed

    private void mnInformasiDaftarOderBarangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnInformasiDaftarOderBarangActionPerformed
        frmInformasiOrderRuangan informasiOrderRuangan=new frmInformasiOrderRuangan();
        informasiOrderRuangan.show();
    }//GEN-LAST:event_mnInformasiDaftarOderBarangActionPerformed

    private void mnDaftarPasienMeninggalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnDaftarPasienMeninggalActionPerformed
        frmDaftarPasienMeninggal daftarPasienMeninggal = new frmDaftarPasienMeninggal();
        daftarPasienMeninggal.show();
    }//GEN-LAST:event_mnDaftarPasienMeninggalActionPerformed

    private void mnDaftarPasienLamaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnDaftarPasienLamaActionPerformed
        frmDaftarPasienLama daftarPasienLama=new frmDaftarPasienLama();
        daftarPasienLama.show();
    }//GEN-LAST:event_mnDaftarPasienLamaActionPerformed

private void mnExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnExitActionPerformed
    System.exit(1);
}//GEN-LAST:event_mnExitActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JMenuItem mnAbout;
    private javax.swing.JMenuItem mnBukuRegisteriRawatInap;
    private javax.swing.JMenuItem mnDaftarPasienLama;
    private javax.swing.JMenuItem mnDaftarPasienMeninggal;
    private javax.swing.JMenuItem mnExit;
    private javax.swing.JMenuItem mnInformasiDaftarOderBarang;
    private javax.swing.JMenuItem mnKunjunganPasien;
    private javax.swing.JMenuItem mnLogin;
    private javax.swing.JMenuItem mnLogout;
    private javax.swing.JMenuItem mnPanduanAplikasi;
    private javax.swing.JMenuItem mnPasienMasuk;
    private javax.swing.JMenuItem mnPemesananBarangRuangan;
    private SIMRS.RawatInap.widget.PanelImage panelImage1;
    // End of variables declaration//GEN-END:variables
}
